package models

import (
    "time"

    "go-admin/common/models"
)

type HtContract struct {
    models.Model
    TalentId    int        `json:"talentId" gorm:"type:bigint;comment:人才id"`
    Talent      HtTalent   `json:"talent" gorm:"foreignkey:TalentId"`
    NotifyTime  *time.Time `json:"notifyTime" gorm:"type:datetime(3);comment:提醒时间"`
    Note        string     `json:"note" gorm:"type:varchar(2048);comment:备注信息"`
    TalentName  string     `json:"talentName" gorm:"-"`
    TalentPhone string     `json:"talentPhone" gorm:"-"`
    models.ModelTime
    models.ControlBy
}

func (HtContract) TableName() string {
    return "ht_contract"
}

func (e *HtContract) Generate() models.ActiveRecord {
    o := *e
    return &o
}

func (e *HtContract) GetId() interface{} {
    return e.Id
}
